3.11 \(\int (e x)^m (A+B x^n) (c+d x^n)^2 \, dx\)
Optimal. Leaf size=102 \[ \frac {c x^{n+1} (e x)^m (2 A d+B c)}{m+n+1}+\frac {d x^{2 n+1} (e x)^m (A d+2 B c)}{m+2 n+1}+\frac {A c^2 (e x)^{m+1}}{e (m+1)}+\frac {B d^2 x^{3 n+1} (e x)^m}{m+3 n+1} \]
[Out]
c*(2*A*d+B*c)*x^(1+n)*(e*x)^m/(1+m+n)+d*(A*d+2*B*c)*x^(1+2*n)*(e*x)^m/(1+m+2*n)+B*d^2*x^(1+3*n)*(e*x)^m/(1+m+3
*n)+A*c^2*(e*x)^(1+m)/e/(1+m)
________________________________________________________________________________________
Rubi [A] time = 0.08, antiderivative size = 102, normalized size of antiderivative = 1.00,
number of steps used = 8, number of rules used = 3, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used =
{448, 20, 30} \[ \frac {c x^{n+1} (e x)^m (2 A d+B c)}{m+n+1}+\frac {d x^{2 n+1} (e x)^m (A d+2 B c)}{m+2 n+1}+\frac {A c^2 (e x)^{m+1}}{e (m+1)}+\frac {B d^2 x^{3 n+1} (e x)^m}{m+3 n+1} \]
Antiderivative was successfully verified.
[In]
Int[(e*x)^m*(A + B*x^n)*(c + d*x^n)^2,x]
[Out]
(c*(B*c + 2*A*d)*x^(1 + n)*(e*x)^m)/(1 + m + n) + (d*(2*B*c + A*d)*x^(1 + 2*n)*(e*x)^m)/(1 + m + 2*n) + (B*d^2
*x^(1 + 3*n)*(e*x)^m)/(1 + m + 3*n) + (A*c^2*(e*x)^(1 + m))/(e*(1 + m))
Rule 20
Int[(u_.)*((a_.)*(v_))^(m_)*((b_.)*(v_))^(n_), x_Symbol] :> Dist[(b^IntPart[n]*(b*v)^FracPart[n])/(a^IntPart[n
]*(a*v)^FracPart[n]), Int[u*(a*v)^(m + n), x], x] /; FreeQ[{a, b, m, n}, x] && !IntegerQ[m] && !IntegerQ[n]
&& !IntegerQ[m + n]
Rule 30
Int[(x_)^(m_.), x_Symbol] :> Simp[x^(m + 1)/(m + 1), x] /; FreeQ[m, x] && NeQ[m, -1]
Rule 448
Int[((e_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_.)*((c_) + (d_.)*(x_)^(n_))^(q_.), x_Symbol] :> Int[ExpandI
ntegrand[(e*x)^m*(a + b*x^n)^p*(c + d*x^n)^q, x], x] /; FreeQ[{a, b, c, d, e, m, n}, x] && NeQ[b*c - a*d, 0] &
& IGtQ[p, 0] && IGtQ[q, 0]
Rubi steps
\begin {align*} \int (e x)^m \left (A+B x^n\right ) \left (c+d x^n\right )^2 \, dx &=\int \left (A c^2 (e x)^m+c (B c+2 A d) x^n (e x)^m+d (2 B c+A d) x^{2 n} (e x)^m+B d^2 x^{3 n} (e x)^m\right ) \, dx\\ &=\frac {A c^2 (e x)^{1+m}}{e (1+m)}+\left (B d^2\right ) \int x^{3 n} (e x)^m \, dx+(d (2 B c+A d)) \int x^{2 n} (e x)^m \, dx+(c (B c+2 A d)) \int x^n (e x)^m \, dx\\ &=\frac {A c^2 (e x)^{1+m}}{e (1+m)}+\left (B d^2 x^{-m} (e x)^m\right ) \int x^{m+3 n} \, dx+\left (d (2 B c+A d) x^{-m} (e x)^m\right ) \int x^{m+2 n} \, dx+\left (c (B c+2 A d) x^{-m} (e x)^m\right ) \int x^{m+n} \, dx\\ &=\frac {c (B c+2 A d) x^{1+n} (e x)^m}{1+m+n}+\frac {d (2 B c+A d) x^{1+2 n} (e x)^m}{1+m+2 n}+\frac {B d^2 x^{1+3 n} (e x)^m}{1+m+3 n}+\frac {A c^2 (e x)^{1+m}}{e (1+m)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.18, size = 78, normalized size = 0.76 \[ x (e x)^m \left (\frac {d x^{2 n} (A d+2 B c)}{m+2 n+1}+\frac {c x^n (2 A d+B c)}{m+n+1}+\frac {A c^2}{m+1}+\frac {B d^2 x^{3 n}}{m+3 n+1}\right ) \]
Antiderivative was successfully verified.
[In]
Integrate[(e*x)^m*(A + B*x^n)*(c + d*x^n)^2,x]
[Out]
x*(e*x)^m*((A*c^2)/(1 + m) + (c*(B*c + 2*A*d)*x^n)/(1 + m + n) + (d*(2*B*c + A*d)*x^(2*n))/(1 + m + 2*n) + (B*
d^2*x^(3*n))/(1 + m + 3*n))
________________________________________________________________________________________
fricas [B] time = 0.61, size = 527, normalized size = 5.17 \[ \frac {{\left (B d^{2} m^{3} + 3 \, B d^{2} m^{2} + 3 \, B d^{2} m + B d^{2} + 2 \, {\left (B d^{2} m + B d^{2}\right )} n^{2} + 3 \, {\left (B d^{2} m^{2} + 2 \, B d^{2} m + B d^{2}\right )} n\right )} x x^{3 \, n} e^{\left (m \log \relax (e) + m \log \relax (x)\right )} + {\left ({\left (2 \, B c d + A d^{2}\right )} m^{3} + 2 \, B c d + A d^{2} + 3 \, {\left (2 \, B c d + A d^{2}\right )} m^{2} + 3 \, {\left (2 \, B c d + A d^{2} + {\left (2 \, B c d + A d^{2}\right )} m\right )} n^{2} + 3 \, {\left (2 \, B c d + A d^{2}\right )} m + 4 \, {\left (2 \, B c d + A d^{2} + {\left (2 \, B c d + A d^{2}\right )} m^{2} + 2 \, {\left (2 \, B c d + A d^{2}\right )} m\right )} n\right )} x x^{2 \, n} e^{\left (m \log \relax (e) + m \log \relax (x)\right )} + {\left ({\left (B c^{2} + 2 \, A c d\right )} m^{3} + B c^{2} + 2 \, A c d + 3 \, {\left (B c^{2} + 2 \, A c d\right )} m^{2} + 6 \, {\left (B c^{2} + 2 \, A c d + {\left (B c^{2} + 2 \, A c d\right )} m\right )} n^{2} + 3 \, {\left (B c^{2} + 2 \, A c d\right )} m + 5 \, {\left (B c^{2} + 2 \, A c d + {\left (B c^{2} + 2 \, A c d\right )} m^{2} + 2 \, {\left (B c^{2} + 2 \, A c d\right )} m\right )} n\right )} x x^{n} e^{\left (m \log \relax (e) + m \log \relax (x)\right )} + {\left (A c^{2} m^{3} + 6 \, A c^{2} n^{3} + 3 \, A c^{2} m^{2} + 3 \, A c^{2} m + A c^{2} + 11 \, {\left (A c^{2} m + A c^{2}\right )} n^{2} + 6 \, {\left (A c^{2} m^{2} + 2 \, A c^{2} m + A c^{2}\right )} n\right )} x e^{\left (m \log \relax (e) + m \log \relax (x)\right )}}{m^{4} + 6 \, {\left (m + 1\right )} n^{3} + 4 \, m^{3} + 11 \, {\left (m^{2} + 2 \, m + 1\right )} n^{2} + 6 \, m^{2} + 6 \, {\left (m^{3} + 3 \, m^{2} + 3 \, m + 1\right )} n + 4 \, m + 1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((e*x)^m*(A+B*x^n)*(c+d*x^n)^2,x, algorithm="fricas")
[Out]
((B*d^2*m^3 + 3*B*d^2*m^2 + 3*B*d^2*m + B*d^2 + 2*(B*d^2*m + B*d^2)*n^2 + 3*(B*d^2*m^2 + 2*B*d^2*m + B*d^2)*n)
*x*x^(3*n)*e^(m*log(e) + m*log(x)) + ((2*B*c*d + A*d^2)*m^3 + 2*B*c*d + A*d^2 + 3*(2*B*c*d + A*d^2)*m^2 + 3*(2
*B*c*d + A*d^2 + (2*B*c*d + A*d^2)*m)*n^2 + 3*(2*B*c*d + A*d^2)*m + 4*(2*B*c*d + A*d^2 + (2*B*c*d + A*d^2)*m^2
+ 2*(2*B*c*d + A*d^2)*m)*n)*x*x^(2*n)*e^(m*log(e) + m*log(x)) + ((B*c^2 + 2*A*c*d)*m^3 + B*c^2 + 2*A*c*d + 3*
(B*c^2 + 2*A*c*d)*m^2 + 6*(B*c^2 + 2*A*c*d + (B*c^2 + 2*A*c*d)*m)*n^2 + 3*(B*c^2 + 2*A*c*d)*m + 5*(B*c^2 + 2*A
*c*d + (B*c^2 + 2*A*c*d)*m^2 + 2*(B*c^2 + 2*A*c*d)*m)*n)*x*x^n*e^(m*log(e) + m*log(x)) + (A*c^2*m^3 + 6*A*c^2*
n^3 + 3*A*c^2*m^2 + 3*A*c^2*m + A*c^2 + 11*(A*c^2*m + A*c^2)*n^2 + 6*(A*c^2*m^2 + 2*A*c^2*m + A*c^2)*n)*x*e^(m
*log(e) + m*log(x)))/(m^4 + 6*(m + 1)*n^3 + 4*m^3 + 11*(m^2 + 2*m + 1)*n^2 + 6*m^2 + 6*(m^3 + 3*m^2 + 3*m + 1)
*n + 4*m + 1)
________________________________________________________________________________________
giac [B] time = 0.58, size = 1023, normalized size = 10.03 \[ \frac {B d^{2} m^{3} x x^{m} x^{3 \, n} e^{m} + 3 \, B d^{2} m^{2} n x x^{m} x^{3 \, n} e^{m} + 2 \, B d^{2} m n^{2} x x^{m} x^{3 \, n} e^{m} + 2 \, B c d m^{3} x x^{m} x^{2 \, n} e^{m} + A d^{2} m^{3} x x^{m} x^{2 \, n} e^{m} + 8 \, B c d m^{2} n x x^{m} x^{2 \, n} e^{m} + 4 \, A d^{2} m^{2} n x x^{m} x^{2 \, n} e^{m} + 6 \, B c d m n^{2} x x^{m} x^{2 \, n} e^{m} + 3 \, A d^{2} m n^{2} x x^{m} x^{2 \, n} e^{m} + B c^{2} m^{3} x x^{m} x^{n} e^{m} + 2 \, A c d m^{3} x x^{m} x^{n} e^{m} + 5 \, B c^{2} m^{2} n x x^{m} x^{n} e^{m} + 10 \, A c d m^{2} n x x^{m} x^{n} e^{m} + 6 \, B c^{2} m n^{2} x x^{m} x^{n} e^{m} + 12 \, A c d m n^{2} x x^{m} x^{n} e^{m} + A c^{2} m^{3} x x^{m} e^{m} + 6 \, A c^{2} m^{2} n x x^{m} e^{m} + 11 \, A c^{2} m n^{2} x x^{m} e^{m} + 6 \, A c^{2} n^{3} x x^{m} e^{m} + 3 \, B d^{2} m^{2} x x^{m} x^{3 \, n} e^{m} + 6 \, B d^{2} m n x x^{m} x^{3 \, n} e^{m} + 2 \, B d^{2} n^{2} x x^{m} x^{3 \, n} e^{m} + 6 \, B c d m^{2} x x^{m} x^{2 \, n} e^{m} + 3 \, A d^{2} m^{2} x x^{m} x^{2 \, n} e^{m} + 16 \, B c d m n x x^{m} x^{2 \, n} e^{m} + 8 \, A d^{2} m n x x^{m} x^{2 \, n} e^{m} + 6 \, B c d n^{2} x x^{m} x^{2 \, n} e^{m} + 3 \, A d^{2} n^{2} x x^{m} x^{2 \, n} e^{m} + 3 \, B c^{2} m^{2} x x^{m} x^{n} e^{m} + 6 \, A c d m^{2} x x^{m} x^{n} e^{m} + 10 \, B c^{2} m n x x^{m} x^{n} e^{m} + 20 \, A c d m n x x^{m} x^{n} e^{m} + 6 \, B c^{2} n^{2} x x^{m} x^{n} e^{m} + 12 \, A c d n^{2} x x^{m} x^{n} e^{m} + 3 \, A c^{2} m^{2} x x^{m} e^{m} + 12 \, A c^{2} m n x x^{m} e^{m} + 11 \, A c^{2} n^{2} x x^{m} e^{m} + 3 \, B d^{2} m x x^{m} x^{3 \, n} e^{m} + 3 \, B d^{2} n x x^{m} x^{3 \, n} e^{m} + 6 \, B c d m x x^{m} x^{2 \, n} e^{m} + 3 \, A d^{2} m x x^{m} x^{2 \, n} e^{m} + 8 \, B c d n x x^{m} x^{2 \, n} e^{m} + 4 \, A d^{2} n x x^{m} x^{2 \, n} e^{m} + 3 \, B c^{2} m x x^{m} x^{n} e^{m} + 6 \, A c d m x x^{m} x^{n} e^{m} + 5 \, B c^{2} n x x^{m} x^{n} e^{m} + 10 \, A c d n x x^{m} x^{n} e^{m} + 3 \, A c^{2} m x x^{m} e^{m} + 6 \, A c^{2} n x x^{m} e^{m} + B d^{2} x x^{m} x^{3 \, n} e^{m} + 2 \, B c d x x^{m} x^{2 \, n} e^{m} + A d^{2} x x^{m} x^{2 \, n} e^{m} + B c^{2} x x^{m} x^{n} e^{m} + 2 \, A c d x x^{m} x^{n} e^{m} + A c^{2} x x^{m} e^{m}}{m^{4} + 6 \, m^{3} n + 11 \, m^{2} n^{2} + 6 \, m n^{3} + 4 \, m^{3} + 18 \, m^{2} n + 22 \, m n^{2} + 6 \, n^{3} + 6 \, m^{2} + 18 \, m n + 11 \, n^{2} + 4 \, m + 6 \, n + 1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((e*x)^m*(A+B*x^n)*(c+d*x^n)^2,x, algorithm="giac")
[Out]
(B*d^2*m^3*x*x^m*x^(3*n)*e^m + 3*B*d^2*m^2*n*x*x^m*x^(3*n)*e^m + 2*B*d^2*m*n^2*x*x^m*x^(3*n)*e^m + 2*B*c*d*m^3
*x*x^m*x^(2*n)*e^m + A*d^2*m^3*x*x^m*x^(2*n)*e^m + 8*B*c*d*m^2*n*x*x^m*x^(2*n)*e^m + 4*A*d^2*m^2*n*x*x^m*x^(2*
n)*e^m + 6*B*c*d*m*n^2*x*x^m*x^(2*n)*e^m + 3*A*d^2*m*n^2*x*x^m*x^(2*n)*e^m + B*c^2*m^3*x*x^m*x^n*e^m + 2*A*c*d
*m^3*x*x^m*x^n*e^m + 5*B*c^2*m^2*n*x*x^m*x^n*e^m + 10*A*c*d*m^2*n*x*x^m*x^n*e^m + 6*B*c^2*m*n^2*x*x^m*x^n*e^m
+ 12*A*c*d*m*n^2*x*x^m*x^n*e^m + A*c^2*m^3*x*x^m*e^m + 6*A*c^2*m^2*n*x*x^m*e^m + 11*A*c^2*m*n^2*x*x^m*e^m + 6*
A*c^2*n^3*x*x^m*e^m + 3*B*d^2*m^2*x*x^m*x^(3*n)*e^m + 6*B*d^2*m*n*x*x^m*x^(3*n)*e^m + 2*B*d^2*n^2*x*x^m*x^(3*n
)*e^m + 6*B*c*d*m^2*x*x^m*x^(2*n)*e^m + 3*A*d^2*m^2*x*x^m*x^(2*n)*e^m + 16*B*c*d*m*n*x*x^m*x^(2*n)*e^m + 8*A*d
^2*m*n*x*x^m*x^(2*n)*e^m + 6*B*c*d*n^2*x*x^m*x^(2*n)*e^m + 3*A*d^2*n^2*x*x^m*x^(2*n)*e^m + 3*B*c^2*m^2*x*x^m*x
^n*e^m + 6*A*c*d*m^2*x*x^m*x^n*e^m + 10*B*c^2*m*n*x*x^m*x^n*e^m + 20*A*c*d*m*n*x*x^m*x^n*e^m + 6*B*c^2*n^2*x*x
^m*x^n*e^m + 12*A*c*d*n^2*x*x^m*x^n*e^m + 3*A*c^2*m^2*x*x^m*e^m + 12*A*c^2*m*n*x*x^m*e^m + 11*A*c^2*n^2*x*x^m*
e^m + 3*B*d^2*m*x*x^m*x^(3*n)*e^m + 3*B*d^2*n*x*x^m*x^(3*n)*e^m + 6*B*c*d*m*x*x^m*x^(2*n)*e^m + 3*A*d^2*m*x*x^
m*x^(2*n)*e^m + 8*B*c*d*n*x*x^m*x^(2*n)*e^m + 4*A*d^2*n*x*x^m*x^(2*n)*e^m + 3*B*c^2*m*x*x^m*x^n*e^m + 6*A*c*d*
m*x*x^m*x^n*e^m + 5*B*c^2*n*x*x^m*x^n*e^m + 10*A*c*d*n*x*x^m*x^n*e^m + 3*A*c^2*m*x*x^m*e^m + 6*A*c^2*n*x*x^m*e
^m + B*d^2*x*x^m*x^(3*n)*e^m + 2*B*c*d*x*x^m*x^(2*n)*e^m + A*d^2*x*x^m*x^(2*n)*e^m + B*c^2*x*x^m*x^n*e^m + 2*A
*c*d*x*x^m*x^n*e^m + A*c^2*x*x^m*e^m)/(m^4 + 6*m^3*n + 11*m^2*n^2 + 6*m*n^3 + 4*m^3 + 18*m^2*n + 22*m*n^2 + 6*
n^3 + 6*m^2 + 18*m*n + 11*n^2 + 4*m + 6*n + 1)
________________________________________________________________________________________
maple [C] time = 0.11, size = 732, normalized size = 7.18 \[ \frac {\left (2 A c d \,m^{3} x^{n}+10 A c d \,m^{2} n \,x^{n}+12 A c d m \,n^{2} x^{n}+A \,d^{2} m^{3} x^{2 n}+4 A \,d^{2} m^{2} n \,x^{2 n}+3 A \,d^{2} m \,n^{2} x^{2 n}+B \,c^{2} m^{3} x^{n}+5 B \,c^{2} m^{2} n \,x^{n}+6 B \,c^{2} m \,n^{2} x^{n}+2 B c d \,m^{3} x^{2 n}+8 B c d \,m^{2} n \,x^{2 n}+6 B c d m \,n^{2} x^{2 n}+B \,d^{2} m^{3} x^{3 n}+3 B \,d^{2} m^{2} n \,x^{3 n}+2 B \,d^{2} m \,n^{2} x^{3 n}+A \,c^{2} m^{3}+6 A \,c^{2} m^{2} n +11 A \,c^{2} m \,n^{2}+6 A \,c^{2} n^{3}+6 A c d \,m^{2} x^{n}+20 A c d m n \,x^{n}+12 A c d \,n^{2} x^{n}+3 A \,d^{2} m^{2} x^{2 n}+8 A \,d^{2} m n \,x^{2 n}+3 A \,d^{2} n^{2} x^{2 n}+3 B \,c^{2} m^{2} x^{n}+10 B \,c^{2} m n \,x^{n}+6 B \,c^{2} n^{2} x^{n}+6 B c d \,m^{2} x^{2 n}+16 B c d m n \,x^{2 n}+6 B c d \,n^{2} x^{2 n}+3 B \,d^{2} m^{2} x^{3 n}+6 B \,d^{2} m n \,x^{3 n}+2 B \,d^{2} n^{2} x^{3 n}+3 A \,c^{2} m^{2}+12 A \,c^{2} m n +11 A \,c^{2} n^{2}+6 A c d m \,x^{n}+10 A c d n \,x^{n}+3 A \,d^{2} m \,x^{2 n}+4 A \,d^{2} n \,x^{2 n}+3 B \,c^{2} m \,x^{n}+5 B \,c^{2} n \,x^{n}+6 B c d m \,x^{2 n}+8 B c d n \,x^{2 n}+3 B \,d^{2} m \,x^{3 n}+3 B \,d^{2} n \,x^{3 n}+3 A \,c^{2} m +6 A \,c^{2} n +2 A c d \,x^{n}+A \,d^{2} x^{2 n}+B \,c^{2} x^{n}+2 B c d \,x^{2 n}+B \,d^{2} x^{3 n}+A \,c^{2}\right ) x \,{\mathrm e}^{\frac {\left (-i \pi \,\mathrm {csgn}\left (i e \right ) \mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i e x \right )+i \pi \,\mathrm {csgn}\left (i e \right ) \mathrm {csgn}\left (i e x \right )^{2}+i \pi \,\mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i e x \right )^{2}-i \pi \mathrm {csgn}\left (i e x \right )^{3}+2 \ln \relax (e )+2 \ln \relax (x )\right ) m}{2}}}{\left (m +1\right ) \left (m +n +1\right ) \left (m +2 n +1\right ) \left (m +3 n +1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
int((e*x)^m*(B*x^n+A)*(d*x^n+c)^2,x)
[Out]
x*(2*B*c*d*m^3*(x^n)^2+6*B*d^2*m*n*(x^n)^3+2*B*d^2*n^2*(x^n)^3+A*d^2*m^3*(x^n)^2+3*B*d^2*m^2*(x^n)^3+B*d^2*m^3
*(x^n)^3+B*c^2*m^3*x^n+3*A*d^2*(x^n)^2*m+3*A*d^2*m^2*(x^n)^2+3*A*d^2*n^2*(x^n)^2+3*m*B*d^2*(x^n)^3+3*B*d^2*(x^
n)^3*n+2*B*c*d*(x^n)^2+2*A*c*d*x^n+3*B*c^2*m^2*x^n+6*B*c^2*n^2*x^n+3*B*c^2*x^n*m+5*B*c^2*x^n*n+4*A*d^2*(x^n)^2
*n+6*A*c^2*m^2*n+11*A*c^2*m*n^2+12*A*c^2*m*n+A*c^2+6*B*c*d*m*n^2*(x^n)^2+10*A*c*d*m^2*n*x^n+12*A*c*d*m*n^2*x^n
+16*B*c*d*m*n*(x^n)^2+20*A*c*d*m*n*x^n+8*B*c*d*m^2*n*(x^n)^2+6*A*c*d*m^2*x^n+12*A*c*d*n^2*x^n+10*B*c^2*m*n*x^n
+6*B*c*d*(x^n)^2*m+8*B*c*d*(x^n)^2*n+6*A*c*d*x^n*m+10*A*c*d*x^n*n+3*B*d^2*m^2*n*(x^n)^3+2*B*d^2*m*n^2*(x^n)^3+
3*A*c^2*m+6*A*c^2*n+6*A*c^2*n^3+3*A*c^2*m^2+11*A*c^2*n^2+x^n*B*c^2+(x^n)^3*B*d^2+A*c^2*m^3+(x^n)^2*A*d^2+4*A*d
^2*m^2*n*(x^n)^2+3*A*d^2*m*n^2*(x^n)^2+2*A*c*d*m^3*x^n+8*A*d^2*m*n*(x^n)^2+5*B*c^2*m^2*n*x^n+6*B*c^2*m*n^2*x^n
+6*B*c*d*m^2*(x^n)^2+6*B*c*d*n^2*(x^n)^2)/(m+1)/(m+n+1)/(m+2*n+1)/(m+3*n+1)*exp(1/2*(-I*Pi*csgn(I*e)*csgn(I*x)
*csgn(I*e*x)+I*Pi*csgn(I*e)*csgn(I*e*x)^2+I*Pi*csgn(I*x)*csgn(I*e*x)^2-I*Pi*csgn(I*e*x)^3+2*ln(e)+2*ln(x))*m)
________________________________________________________________________________________
maxima [A] time = 0.63, size = 155, normalized size = 1.52 \[ \frac {B d^{2} e^{m} x e^{\left (m \log \relax (x) + 3 \, n \log \relax (x)\right )}}{m + 3 \, n + 1} + \frac {2 \, B c d e^{m} x e^{\left (m \log \relax (x) + 2 \, n \log \relax (x)\right )}}{m + 2 \, n + 1} + \frac {A d^{2} e^{m} x e^{\left (m \log \relax (x) + 2 \, n \log \relax (x)\right )}}{m + 2 \, n + 1} + \frac {B c^{2} e^{m} x e^{\left (m \log \relax (x) + n \log \relax (x)\right )}}{m + n + 1} + \frac {2 \, A c d e^{m} x e^{\left (m \log \relax (x) + n \log \relax (x)\right )}}{m + n + 1} + \frac {\left (e x\right )^{m + 1} A c^{2}}{e {\left (m + 1\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((e*x)^m*(A+B*x^n)*(c+d*x^n)^2,x, algorithm="maxima")
[Out]
B*d^2*e^m*x*e^(m*log(x) + 3*n*log(x))/(m + 3*n + 1) + 2*B*c*d*e^m*x*e^(m*log(x) + 2*n*log(x))/(m + 2*n + 1) +
A*d^2*e^m*x*e^(m*log(x) + 2*n*log(x))/(m + 2*n + 1) + B*c^2*e^m*x*e^(m*log(x) + n*log(x))/(m + n + 1) + 2*A*c*
d*e^m*x*e^(m*log(x) + n*log(x))/(m + n + 1) + (e*x)^(m + 1)*A*c^2/(e*(m + 1))
________________________________________________________________________________________
mupad [B] time = 5.11, size = 265, normalized size = 2.60 \[ \frac {A\,c^2\,x\,{\left (e\,x\right )}^m}{m+1}+\frac {c\,x\,x^n\,{\left (e\,x\right )}^m\,\left (2\,A\,d+B\,c\right )\,\left (m^2+5\,m\,n+2\,m+6\,n^2+5\,n+1\right )}{m^3+6\,m^2\,n+3\,m^2+11\,m\,n^2+12\,m\,n+3\,m+6\,n^3+11\,n^2+6\,n+1}+\frac {d\,x\,x^{2\,n}\,{\left (e\,x\right )}^m\,\left (A\,d+2\,B\,c\right )\,\left (m^2+4\,m\,n+2\,m+3\,n^2+4\,n+1\right )}{m^3+6\,m^2\,n+3\,m^2+11\,m\,n^2+12\,m\,n+3\,m+6\,n^3+11\,n^2+6\,n+1}+\frac {B\,d^2\,x\,x^{3\,n}\,{\left (e\,x\right )}^m\,\left (m^2+3\,m\,n+2\,m+2\,n^2+3\,n+1\right )}{m^3+6\,m^2\,n+3\,m^2+11\,m\,n^2+12\,m\,n+3\,m+6\,n^3+11\,n^2+6\,n+1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
int((e*x)^m*(A + B*x^n)*(c + d*x^n)^2,x)
[Out]
(A*c^2*x*(e*x)^m)/(m + 1) + (c*x*x^n*(e*x)^m*(2*A*d + B*c)*(2*m + 5*n + 5*m*n + m^2 + 6*n^2 + 1))/(3*m + 6*n +
12*m*n + 11*m*n^2 + 6*m^2*n + 3*m^2 + m^3 + 11*n^2 + 6*n^3 + 1) + (d*x*x^(2*n)*(e*x)^m*(A*d + 2*B*c)*(2*m + 4
*n + 4*m*n + m^2 + 3*n^2 + 1))/(3*m + 6*n + 12*m*n + 11*m*n^2 + 6*m^2*n + 3*m^2 + m^3 + 11*n^2 + 6*n^3 + 1) +
(B*d^2*x*x^(3*n)*(e*x)^m*(2*m + 3*n + 3*m*n + m^2 + 2*n^2 + 1))/(3*m + 6*n + 12*m*n + 11*m*n^2 + 6*m^2*n + 3*m
^2 + m^3 + 11*n^2 + 6*n^3 + 1)
________________________________________________________________________________________
sympy [A] time = 74.16, size = 6399, normalized size = 62.74 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((e*x)**m*(A+B*x**n)*(c+d*x**n)**2,x)
[Out]
Piecewise(((A + B)*(c + d)**2*log(x)/e, Eq(m, -1) & Eq(n, 0)), ((A*c**2*log(x) + 2*A*c*d*x**n/n + A*d**2*x**(2
*n)/(2*n) + B*c**2*x**n/n + B*c*d*x**(2*n)/n + B*d**2*x**(3*n)/(3*n))/e, Eq(m, -1)), (A*c**2*Piecewise((log(x)
, Eq(n, 0)), (-x**(-3*n)*(0**(1/n))**(-3*n)/(3*n), Eq(e, 0**(1/n))), (-e**(-3*n)*x**(-3*n)/(3*n), True))/e + 2
*A*c*d*Piecewise((log(x), Eq(n, 0)), (-x**n/(3*0**(1/n)*zoo**(1/n)*n*x**(3*n)*(0**(1/n))**(3*n) - n*x**(3*n)*(
0**(1/n))**(3*n)), Eq(e, 0**(1/n))), (-e**(-3*n)*x**(-2*n)/(2*n), True))/e + A*d**2*Piecewise((log(x), Eq(n, 0
)), (-x**(2*n)/(3*0**(1/n)*zoo**(1/n)*n*x**(3*n)*(0**(1/n))**(3*n) - 2*n*x**(3*n)*(0**(1/n))**(3*n)), Eq(e, 0*
*(1/n))), (-e**(-3*n)*x**(-n)/n, True))/e + B*c**2*Piecewise((log(x), Eq(n, 0)), (-x**n/(3*0**(1/n)*zoo**(1/n)
*n*x**(3*n)*(0**(1/n))**(3*n) - n*x**(3*n)*(0**(1/n))**(3*n)), Eq(e, 0**(1/n))), (-e**(-3*n)*x**(-2*n)/(2*n),
True))/e + 2*B*c*d*Piecewise((log(x), Eq(n, 0)), (-x**(2*n)/(3*0**(1/n)*zoo**(1/n)*n*x**(3*n)*(0**(1/n))**(3*n
) - 2*n*x**(3*n)*(0**(1/n))**(3*n)), Eq(e, 0**(1/n))), (-e**(-3*n)*x**(-n)/n, True))/e + B*d**2*Piecewise((e**
(-3*n)*log(x), Abs(x) < 1), (-e**(-3*n)*log(1/x), 1/Abs(x) < 1), (-e**(-3*n)*meijerg(((), (1, 1)), ((0, 0), ()
), x) + e**(-3*n)*meijerg(((1, 1), ()), ((), (0, 0)), x), True))/e, Eq(m, -3*n - 1)), (A*c**2*Piecewise((log(x
), Eq(n, 0)), (-x**(-2*n)*(0**(1/n))**(-2*n)/(2*n), Eq(e, 0**(1/n))), (-e**(-2*n)*x**(-2*n)/(2*n), True))/e +
2*A*c*d*Piecewise((log(x), Eq(n, 0)), (-x**n/(2*0**(1/n)*zoo**(1/n)*n*x**(2*n)*(0**(1/n))**(2*n) - n*x**(2*n)*
(0**(1/n))**(2*n)), Eq(e, 0**(1/n))), (-e**(-2*n)*x**(-n)/n, True))/e + A*d**2*Piecewise((e**(-2*n)*log(x), Ab
s(x) < 1), (-e**(-2*n)*log(1/x), 1/Abs(x) < 1), (-e**(-2*n)*meijerg(((), (1, 1)), ((0, 0), ()), x) + e**(-2*n)
*meijerg(((1, 1), ()), ((), (0, 0)), x), True))/e + B*c**2*Piecewise((log(x), Eq(n, 0)), (-x**n/(2*0**(1/n)*zo
o**(1/n)*n*x**(2*n)*(0**(1/n))**(2*n) - n*x**(2*n)*(0**(1/n))**(2*n)), Eq(e, 0**(1/n))), (-e**(-2*n)*x**(-n)/n
, True))/e + 2*B*c*d*Piecewise((e**(-2*n)*log(x), Abs(x) < 1), (-e**(-2*n)*log(1/x), 1/Abs(x) < 1), (-e**(-2*n
)*meijerg(((), (1, 1)), ((0, 0), ()), x) + e**(-2*n)*meijerg(((1, 1), ()), ((), (0, 0)), x), True))/e + B*d**2
*Piecewise((log(x), Eq(n, 0)), (-x**(3*n)/(2*0**(1/n)*zoo**(1/n)*n*x**(2*n)*(0**(1/n))**(2*n) - 3*n*x**(2*n)*(
0**(1/n))**(2*n)), Eq(e, 0**(1/n))), (e**(-2*n)*x**n/n, True))/e, Eq(m, -2*n - 1)), (A*c**2*Piecewise((log(x),
Eq(n, 0)), (-x**(-n)*(0**(1/n))**(-n)/n, Eq(e, 0**(1/n))), (-e**(-n)*x**(-n)/n, True))/e + 2*A*c*d*Piecewise(
(e**(-n)*log(x), Abs(x) < 1), (-e**(-n)*log(1/x), 1/Abs(x) < 1), (-e**(-n)*meijerg(((), (1, 1)), ((0, 0), ()),
x) + e**(-n)*meijerg(((1, 1), ()), ((), (0, 0)), x), True))/e + A*d**2*Piecewise((log(x), Eq(n, 0)), (-x**(2*
n)/(0**(1/n)*zoo**(1/n)*n*x**n*(0**(1/n))**n - 2*n*x**n*(0**(1/n))**n), Eq(e, 0**(1/n))), (e**(-n)*x**n/n, Tru
e))/e + B*c**2*Piecewise((e**(-n)*log(x), Abs(x) < 1), (-e**(-n)*log(1/x), 1/Abs(x) < 1), (-e**(-n)*meijerg(((
), (1, 1)), ((0, 0), ()), x) + e**(-n)*meijerg(((1, 1), ()), ((), (0, 0)), x), True))/e + 2*B*c*d*Piecewise((l
og(x), Eq(n, 0)), (-x**(2*n)/(0**(1/n)*zoo**(1/n)*n*x**n*(0**(1/n))**n - 2*n*x**n*(0**(1/n))**n), Eq(e, 0**(1/
n))), (e**(-n)*x**n/n, True))/e + B*d**2*Piecewise((log(x), Eq(n, 0)), (-x**(3*n)/(0**(1/n)*zoo**(1/n)*n*x**n*
(0**(1/n))**n - 3*n*x**n*(0**(1/n))**n), Eq(e, 0**(1/n))), (e**(-n)*x**(2*n)/(2*n), True))/e, Eq(m, -n - 1)),
(A*c**2*e**m*m**3*x*x**m/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2
+ 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + 6*A*c**2*e**m*m**2*n*x*x**m/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2
*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + 3*A*c**2*e**m
*m**2*x*x**m/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*n + 4
*m + 6*n**3 + 11*n**2 + 6*n + 1) + 11*A*c**2*e**m*m*n**2*x*x**m/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n**2 + 18*
m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + 12*A*c**2*e**m*m*n*x*x**
m/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*n + 4*m + 6*n**3
+ 11*n**2 + 6*n + 1) + 3*A*c**2*e**m*m*x*x**m/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 +
6*m*n**3 + 22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + 6*A*c**2*e**m*n**3*x*x**m/(m**4 + 6*m**3*
n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n
+ 1) + 11*A*c**2*e**m*n**2*x*x**m/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 2
2*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + 6*A*c**2*e**m*n*x*x**m/(m**4 + 6*m**3*n + 4*m**3 + 11*
m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + A*c**2*e*
*m*x*x**m/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*n + 4*m
+ 6*n**3 + 11*n**2 + 6*n + 1) + 2*A*c*d*e**m*m**3*x*x**m*x**n/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n**2 + 18*m*
*2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + 10*A*c*d*e**m*m**2*n*x*x**
m*x**n/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*n + 4*m + 6
*n**3 + 11*n**2 + 6*n + 1) + 6*A*c*d*e**m*m**2*x*x**m*x**n/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*
n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + 12*A*c*d*e**m*m*n**2*x*x**m*x
**n/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*n + 4*m + 6*n*
*3 + 11*n**2 + 6*n + 1) + 20*A*c*d*e**m*m*n*x*x**m*x**n/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n +
6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + 6*A*c*d*e**m*m*x*x**m*x**n/(m**4
+ 6*m**3*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n
**2 + 6*n + 1) + 12*A*c*d*e**m*n**2*x*x**m*x**n/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2
+ 6*m*n**3 + 22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + 10*A*c*d*e**m*n*x*x**m*x**n/(m**4 + 6*m*
*3*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6
*n + 1) + 2*A*c*d*e**m*x*x**m*x**n/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 +
22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + A*d**2*e**m*m**3*x*x**m*x**(2*n)/(m**4 + 6*m**3*n + 4
*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1)
+ 4*A*d**2*e**m*m**2*n*x*x**m*x**(2*n)/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**
3 + 22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + 3*A*d**2*e**m*m**2*x*x**m*x**(2*n)/(m**4 + 6*m**3
*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n
+ 1) + 3*A*d**2*e**m*m*n**2*x*x**m*x**(2*n)/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6
*m*n**3 + 22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + 8*A*d**2*e**m*m*n*x*x**m*x**(2*n)/(m**4 + 6
*m**3*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2
+ 6*n + 1) + 3*A*d**2*e**m*m*x*x**m*x**(2*n)/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6
*m*n**3 + 22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + 3*A*d**2*e**m*n**2*x*x**m*x**(2*n)/(m**4 +
6*m**3*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2
+ 6*n + 1) + 4*A*d**2*e**m*n*x*x**m*x**(2*n)/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 +
6*m*n**3 + 22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + A*d**2*e**m*x*x**m*x**(2*n)/(m**4 + 6*m**3
*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n
+ 1) + B*c**2*e**m*m**3*x*x**m*x**n/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3
+ 22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + 5*B*c**2*e**m*m**2*n*x*x**m*x**n/(m**4 + 6*m**3*n +
4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1
) + 3*B*c**2*e**m*m**2*x*x**m*x**n/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 +
22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + 6*B*c**2*e**m*m*n**2*x*x**m*x**n/(m**4 + 6*m**3*n + 4
*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1)
+ 10*B*c**2*e**m*m*n*x*x**m*x**n/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22
*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + 3*B*c**2*e**m*m*x*x**m*x**n/(m**4 + 6*m**3*n + 4*m**3 +
11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + 6*B*c
**2*e**m*n**2*x*x**m*x**n/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2
+ 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + 5*B*c**2*e**m*n*x*x**m*x**n/(m**4 + 6*m**3*n + 4*m**3 + 11*m**
2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + B*c**2*e**m*
x*x**m*x**n/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*n + 4*
m + 6*n**3 + 11*n**2 + 6*n + 1) + 2*B*c*d*e**m*m**3*x*x**m*x**(2*n)/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n**2 +
18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + 8*B*c*d*e**m*m**2*n*
x*x**m*x**(2*n)/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*n
+ 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + 6*B*c*d*e**m*m**2*x*x**m*x**(2*n)/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n*
*2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + 6*B*c*d*e**m*m*n
**2*x*x**m*x**(2*n)/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*
m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + 16*B*c*d*e**m*m*n*x*x**m*x**(2*n)/(m**4 + 6*m**3*n + 4*m**3 + 11*m**
2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + 6*B*c*d*e**m
*m*x*x**m*x**(2*n)/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m
*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + 6*B*c*d*e**m*n**2*x*x**m*x**(2*n)/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2
*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + 8*B*c*d*e**m*
n*x*x**m*x**(2*n)/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*
n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + 2*B*c*d*e**m*x*x**m*x**(2*n)/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n**2
+ 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + B*d**2*e**m*m**3*x*
x**m*x**(3*n)/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*n +
4*m + 6*n**3 + 11*n**2 + 6*n + 1) + 3*B*d**2*e**m*m**2*n*x*x**m*x**(3*n)/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n
**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + 3*B*d**2*e**m*m
**2*x*x**m*x**(3*n)/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*
m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + 2*B*d**2*e**m*m*n**2*x*x**m*x**(3*n)/(m**4 + 6*m**3*n + 4*m**3 + 11*
m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + 6*B*d**2*
e**m*m*n*x*x**m*x**(3*n)/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2
+ 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + 3*B*d**2*e**m*m*x*x**m*x**(3*n)/(m**4 + 6*m**3*n + 4*m**3 + 11*
m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + 2*B*d**2*
e**m*n**2*x*x**m*x**(3*n)/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2
+ 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + 3*B*d**2*e**m*n*x*x**m*x**(3*n)/(m**4 + 6*m**3*n + 4*m**3 + 11
*m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1) + B*d**2*e
**m*x*x**m*x**(3*n)/(m**4 + 6*m**3*n + 4*m**3 + 11*m**2*n**2 + 18*m**2*n + 6*m**2 + 6*m*n**3 + 22*m*n**2 + 18*
m*n + 4*m + 6*n**3 + 11*n**2 + 6*n + 1), True))
________________________________________________________________________________________